﻿using Microsoft.AspNetCore.Http;

namespace Luka;

/// <summary>
/// 自定义加密解密方法
/// </summary>
public interface IEncryptionHandler
{
    /// <summary>
    /// 解码
    /// </summary>
    /// <returns></returns>
    string Decrypt(string encryptedBody, HttpContext context);

    /// <summary>
    /// 编码
    /// </summary>
    /// <returns></returns>
    string Encrypt(string responseBody, HttpContext context);
}